package com.kunbo.cn.entity.core.customer;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import lombok.Data;

/**
 * 客户管理
 * @author  编写人:刘义
 * @date 时间:2019年3月18日下午12:46:55
 */
@Entity
@Table(name = "business_customer_users_manage")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
@EntityListeners(AuditingEntityListener.class)
@Data
public class CustomerManage {

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "jpa-uuid")
	@Column(length = 32)
	private String id;		
	private String uuid;
	private String create_user_id;
	private String taskid;
	private String customer_code;//编号
	private Integer customer;//客户
	private String login_name;//账号
	private String customer_name;//客户名称
	private String login_password;//登录密码
	private String phone;//手机号
	private String affiliated_organization;//所属组织
	private String type; //用户类型  1.超级用户   2.管理用户   3.普通用户  4.客户子用户
	private Integer tives;//是否有效   //  0.无效     1.有效
	private Integer login_count;//登录次数
	private String last_login_time;//最后登录时间
	private String explains;//说明
	
	
}	
